package com.commods.main.view.components.historicalChart.proto.vo
{
	import mx.formatters.DateFormatter;
	import mx.states.OverrideBase;
	import mx.utils.StringUtil;

	public class TradeData
	{
		public function TradeData()
		{
		}
		//ask>bid
		public var ask:Number;
		public var bid:Number;
		public var time:Date;
		
		public var name:String;
		
		public function toString():String{
			var df:DateFormatter = new DateFormatter();
			df.formatString = "DD/MM";
			return StringUtil.substitute("Bid:{0} Ask{1} Date{3}", bid, ask, df.format(time));
		}
		
		
	}
}